package com.xuecheng.basic.api;

import com.xuecheng.commons.model.vo.CategoryVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author 12441
 * @Date 2022/9/20 15:37
 * @Version 1.0
 */
@FeignClient("xc-basic-service")
public interface BasicClient {

    //根据ID查询课程分类
    @GetMapping("/category/{id}")
    ResponseResult<CategoryVo> findById(@PathVariable("id")String id);
}
